<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of newPHPClass
 *
 * @author flutesing
 */
namespace Api\Model;
use Think\Model;

class ApplyConsultationModel extends Model {
    //put your code here
    protected $_validate = array(
        array('uid','require','用户ID必须！', self::MUST_VALIDATE),
        array('type','require','申请类型缺少！', self::MUST_VALIDATE),
        array('description','require','病情描述必须！', self::MUST_VALIDATE),
        array('mobile','require','联系电话必须！', self::MUST_VALIDATE),
        array('mobile','number','联系电话错误！', self::MUST_VALIDATE),
        array('relation','require','与病人关系必须！', self::MUST_VALIDATE)
   );

    protected $_auto = array(
        array('add_time', 'time', self::MODEL_INSERT, 'function')
    );
}
